package org.feifei.hrm.except;

/**
 * @author forever
 * @Description:
 * @date 2022/01/03 10:31
 */
public class GlobalException extends RuntimeException {

    private int code = 500;

    public GlobalException() {
        super();
    }

    public GlobalException(String message) {
        super(message);
    }

    public GlobalException(String message, Throwable cause) {
        super(message, cause);
    }

    public GlobalException(int code,String message) {
        super(message);
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
